<%-- 
    Document   : form
    Created on : 19.07.2011, 16:04:18
    Author     : irabin
--%>

<jsp:directive.page contentType="text/xml" pageEncoding="UTF-8" />

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>


<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
      output-encoding="UTF-8" paging="true" 
      title="My Netbiscuits |  by Isak Rabin" xsd-version="1.12" 
      xsi:nonamespaceschemalocation="http://www.netbiscuits.com/schema/netbiscuits-1.12.xsd">


    <meta content="My Netbiscuits | Example | Form to Email" name="description"/>

    <jsp:include page="res/includes/page.style.jsp"></jsp:include>

        <container>
            <column>

            <jsp:include page="res/includes/page.header.jsp"></jsp:include>

            <jsp:include page="res/includes/page.menu.jsp"></jsp:include>


                <FORM action="submitGuestbookForm.htm" method="POST" name="guestbookForm" overwrite="true"> 
                    
                    <input name="recipient" type="hidden"/> 
                    <input name="nbAction" type="hidden"/>
                    <input name="nbActionLogging" type="hidden" /> 
                    <input name="successPage" type="hidden" /> 
                    <input name="errorPage" type="hidden"/> 

                    <headline>Form Submission</headline>
                    <richtext>[b]Please enter your data:[/b]</richtext> 


               
                    <row> 
                        <cell>
                            <text>Name</text> 
                        </cell> 
                    </row> 
                    <row>
                        <cell> 
                            <input autofocus="on" maxlength="100" name="name" required="true" type="text"/> 
                            <error name="name">Please input your name</error> 
                        </cell> 
                    </row>
                            
                            
                    <row> 
                        <cell>
                            <text>Email Address</text> 
                        </cell> 
                    </row> 
                    <row>
                        <cell>
                            <text>
                                <c:out value="${null}"><fmt:message bundle="${bundle}" key="form.error.name" /></c:out>
                            </text>
                        </cell>
                    </row>                     
                    <row> 
                        <cell>
                            <input maxlength="100" name="email" required="true" type="text"/> 
                            <error name="email">Please provide Email Address</error> 
                        </cell> 
                    </row>
                    <row> 
                        <cell>
                            <text>Gender</text> 
                        </cell> 
                    </row> 
                    <row> 
                        <cell> 
                            <input checked="checked" name="gender" required="true" type="radio" value="M"/> 
                            <text>Male</text> 
                        </cell>
                    </row> 
                    <row> 
                        <cell>
                            <input name="gender" required="true" type="radio" value="F"/>
                            <text>Female</text> 
                        </cell> 
                    </row> 
                    <error name="gender">Please select your gender</error> 
                    <row>
                        <cell>
                            <input checked="checked" name="subscribe" type="checkbox" value="Y"/> 
                            <text>Yes, I want to subscribe for a newsletter</text> 
                        </cell> 
                    </row> 
                    <row> 
                        <cell> 
                            <text>Subscriptions Period</text> 
                        </cell> 
                    </row>
                    <row> 
                        <cell>
                            <input name="subscriptionPeriod" type="select"> 
                            <option selected="selected" value="D">Daily</option> 
                            <option value="W">Weekly</option> 
                            <option value="M">Monthly</option> 
                            </input> 
                        </cell> 
                    </row>

                    <row> 
                        <cell>
                            <input name="btnSubmit" type="submit" value="Submit"/> 
                            <input name="btnReset" type="submit" value="Reset"/> 
                        </cell> 
                    </row>

                </FORM>            

            <jsp:include page="res/includes/page.example.footer.jsp"></jsp:include>            

            <jsp:include page="res/includes/page.footer.jsp"></jsp:include>


        </column>
    </container>

</page>            
